package cn.mystylefree.sqlSession;

import cn.mystylefree.po.Configuration;

/**
 * @program my-project-model
 * @description:
 * @author: lee
 * @create: 2022/06/15 09:19
 */
public class DefaultSqlSessionFactory implements SqlSessionFactory {

    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }


    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }
}
